package cn.cycleif.component.file.impl;

import cn.cycleif.component.file.BaseFileUploadStrategy;
import cn.cycleif.enums.FileManageEnum;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

/**
 * &#064;Date: 24/06/09-14:26
 * &#064;Description:
 */
@Service("localStrategyImpl")
public class LocalStrategyImpl extends BaseFileUploadStrategy {

  public LocalStrategyImpl() {
    super(FileManageEnum.LOCAL);
  }

  /**
   * 本地文件暂时不需要检查
   *
   * @return {boolean}
   */
  @Override
  protected boolean check() {
    return true;
  }


  @Override
  public String upload(MultipartFile file) {
    return null;
  }

  @Override
  public boolean remove(String... fileName) {
    return false;
  }
}
